import PrimaryForm from './PrimaryForm'
import { StoreState } from '../../redux/Types'
import { connect } from 'react-redux'


export function mapStateToProps({global: { sample, sampleImgs }, setting: { colors, sizes }, primary: { record } }: StoreState) {
  return {
    record,
    sample,
    sampleImgs,
    colors,
    sizes
  }
}
export default connect(mapStateToProps)(PrimaryForm)